package com.jg.dao.impl;

import com.jg.dao.OrderDao;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Repository;

/**
 * @author 86130
 * @version 1.0
 * @description: TODO
 * @date 2025/5/21 下午4:26
 */
@Repository
public class OrderMysqlDaoImpl implements OrderDao {

    @Value("${url}")
    public String url;

    @Value("${name}")
    private String name;

    @Value("${age}")
    private String age;

    @Value("${sex}")
    private String sex;

    @Value("${address}")
    private String address;

    @Override
    public void getOrderList() {
        System.out.println("在mysql中获取订单列表");
        System.out.println("数据库地址是：" + url);
        System.out.println("用户名是：" + name + "，年龄是：" + age + "，性别是：" + sex + "，地址是：" + address);
    }
}
